/**
 * Copyright © 2011 looty - Textoo
 * @link http://www.textoo.org
 * @link http://code.google.com/p/textoo/
 * @author lab9 - Bertrand Larrieu
 * @mail lab9.fr@gmail.com
 * @version 2.0
 */

package org.looty.textoo.context 
{
	import flash.events.*;
	import flash.text.*;
	import org.looty.core.disposable.*;
	import org.looty.core.textoo.context.local.*;
	import org.looty.core.textoo.format.*;
	import org.looty.core.textoo.render.*;
	
	/**
	 * Localisation langage code is built from the langage code defined in the <a href="http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes" >ISO 639</a> standard along with the country code defined in the <a href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2" >ISO 3166</a>. eg : en_UK, fr_FR
	 */	
	
	public interface ITextooContext extends IEventDispatcher, IDisposable
	{
		function getText(key:String):LocalisationText;
		function get styleSheet():StyleSheet;
		function detectLanguage():void;
		function set language(value:String):void;
		function get language():String;
		function get languages():Vector.<String>;
		function format(props:TextooProps):void;
		function render(props:TextooProps):RenderData;
		function dump():void;
	}
	
}